﻿using BussinessObject.ObjectTwo;
using Class_Entity.ObjectTwo;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ProjectHK3.Object_One
{
    public partial class FeedbackDetail : System.Web.UI.Page
    {
        B_Search bs = new B_Search();
        C_FeedBack cf = new C_FeedBack();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                loadData();
            }
        }
        public void loadData()
        {
            try
            {
                cf = bs.loadFeedback(int.Parse(Session["Feedback"].ToString()));

                Label6.Text = cf.FIRST_NAME.ToString();
                Label7.Text = cf.LAST_NAME.ToString();
                Label8.Text = cf.EMAIL.ToString();
                Label9.Text = cf.BODY.ToString();
            }
            catch (Exception ex)
            {
                Label2.Text = "This infcfmation does not exist !";
                Label3.Visible = false;
                Label4.Visible = false;
                Label5.Visible = false;
 

            }
        }


        protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
        {
            Response.Redirect("../Object One/Feedback.aspx");
        }
    }
}